
#ifndef __7SEGMENT_H
#define __7SEGMENT_H


// fnd1
#define FND1_DDR				DDRJ
#define FND1_PORT				PORTJ
#define FND1_PIN				PINJ
#define FND1_PIN_NO				PJ4

// fnd2
#define FND2_DDR				DDRJ
#define FND2_PORT				PORTJ
#define FND2_PIN				PINJ
#define FND2_PIN_NO				PJ5

// fnd3
#define FND3_DDR				DDRJ
#define FND3_PORT				PORTJ
#define FND3_PIN				PINJ
#define FND3_PIN_NO				PJ6

// fnd4
#define FND4_DDR				DDRJ
#define FND4_PORT				PORTJ
#define FND4_PIN				PINJ
#define FND4_PIN_NO				PJ7

#define FND_DATA_DDR			DDRH
#define FND_DATA_PORT			PORTH



void bsp_fnd_gpio_init(void);
void fnd_puts(u16 num_data, u16 delay_ms);
void fnd_puts_temperature(u16 num_data, u16 delay_ms);
void fnd_puts_voltage(u16 num_data, u16 delay_ms);

#endif
